//
//  NSString+URLEncoding.m
//  KutulusLaw
//
//  Created by Mahmood1 on 12/27/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "KStringEncoding.h"
@implementation KStringEncoding 
+ (NSString *)urlEncodeUsingEncoding:(NSString *)string encoding:(NSStringEncoding)encoding{
	return (__bridge_transfer NSString *)CFURLCreateStringByAddingPercentEscapes(NULL,
															   (__bridge_retained CFStringRef)string,
															   NULL,
															   (CFStringRef)@"!*'\"();:@&=+$,/?%#[]% ",
															   CFStringConvertNSStringEncodingToEncoding(encoding));
}
@end